package com.eric.service;
import cn.dev33.satoken.util.SaResult;
import com.eric.domain.dto.EquipTransferDto;
import com.eric.domain.po.EquipTransfer;
import com.github.yulichang.base.MPJBaseService;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;

/**
 * <p>
 * 设备转移登记表 服务类
 * </p>
 *
 * @author 新哥
 * @since 2024-03-12
 */
public interface IEquipTransferService extends MPJBaseService<EquipTransfer> {

    SaResult modifyOneService(EquipTransferDto equipTransferDto, MultipartFile[] photoFiles, HttpServletRequest request, String[] photoList);

    SaResult deleteOneByIdService(Integer id);

    SaResult getAllByPage(Integer current, Integer pageSize);

    SaResult saveOneByEqId(Integer id,String receivingProject, String description,MultipartFile[] photoFiles, HttpServletRequest request);

    SaResult getAllCountsService();

    void downloadFilesService(String[] files, HttpServletResponse response) throws IOException;

    SaResult getAllByAllTypeName(String name,Integer current,Integer pageSize);

    SaResult getByBetweenTimesCountsService(Date start, Date end);

    SaResult getAllByAllTypeNameCounts(String name);

    SaResult getByBetweenTimesService(Date start, Date end, Integer current, Integer pageSize);

    SaResult getOneByIdService(Integer id);
// 这部分接口不用
  /*  SaResult deleteByIdsService(ArrayList<Integer> ids);

    SaResult getByCreateTimeService(Date createTime, Integer current, Integer pageSize);

    SaResult getByUpdateTimeService(Date updateTime, Integer current, Integer pageSize);

    SaResult getByReceivingProjectService(String projectName, Integer current, Integer pageSize);

    SaResult getByEqNameService(String equipName, Integer current, Integer pageSize);

    SaResult getByLastUpdateByService(String lastByName, Integer current, Integer pageSize);

    SaResult getByCreateByService(String createByName, Integer current, Integer pageSize);

    SaResult getAllByMoon(Date moonDate, Integer current, Integer pageSize);*/

}
